﻿//Created by Action Script Viewer - http://www.buraks.com/asv
package Classes.announcers.ui {
    import flash.display.*;
    import org.aswing.*;
    import Classes.*;
    import flash.text.*;
    import Display.aswingui.*;

    public class AnnouncerSpeechBubble extends Sprite {

        private var m_holder:Sprite;
        private var m_win:JWindow;
        private var m_container:JPanel;
        private var m_body:JPanel;
        private var m_mainTxtContainer:JPanel;

        public function AnnouncerSpeechBubble(){
            this.m_holder = new Sprite();
            addChild(this.m_holder);
            this.m_mainTxtContainer = ASwingHelper.makeSoftBoxJPanelVertical();
            this.m_body = ASwingHelper.makeSoftBoxJPanelVertical();
            this.m_body.appendAll(this.m_mainTxtContainer);
            ASwingHelper.setEasyBorder(this.m_body, 10, 10, 16, 10);
            var _local1:MarginBackground = new MarginBackground((new EmbeddedArt.npcSpeechBubble() as DisplayObject), new Insets(0, 0, 0, 0));
            this.m_container = ASwingHelper.makeSoftBoxJPanel();
            this.m_container.setBackgroundDecorator(_local1);
            this.m_container.append(this.m_body);
            this.m_win = new JWindow(this.m_holder);
            this.m_win.setContentPane(this.m_container);
            this.m_win.show();
            ASwingHelper.prepare(this.m_win);
        }
        public function setMessage(_arg1:String):void{
            this.m_mainTxtContainer.removeAll();
            var _local2:AssetPane = ASwingHelper.makeMultilineText(_arg1, 150, EmbeddedArt.DEFAULT_FONT_NAME_BOLD, TextFormatAlign.LEFT, 12, 0x333333);
            this.m_mainTxtContainer.append(_local2);
            ASwingHelper.prepare(this.m_win);
            this.m_holder.x = -(this.m_holder.width);
            this.m_holder.y = -(this.m_holder.height);
        }

    }
}//package Classes.announcers.ui 
